
<h2>ประกาศ</h2>
<table width="100%">
	<tbody>
		<tr>
			<td colspan="2">
				<div id="btnBox" align="right"><a href="admin_notify/form" style="text-decoration:none;"><input type="button" class="ui-state-active ui-corner-all btnAdd" value="เพิ่มรายการ"></a></div>
			</td>   
		</tr>
	</tbody>
</table>
<div id="paging" class="pagination">
	<?php //echo $pagination;?>
</div>
<div id="main-content">
	<table class="tbContainer">
		<tr>
			<td>
				<table border="0" cellpadding="10" cellspacing="0" width="100%"  >
					
						<tr class="ui-state-error">
							<td class="ui-state-error tdlist">ลำดับ</td>
							<td class="ui-state-error tdlist">รูป</td>
							<td class="ui-state-error tdlist">หัวข้อ</td>
							<td class="ui-state-error tdlist">จัดการข้อมูล</td>
						</tr>
						<?php
							$page = (isset($_GET['page']))? $_GET['page']:1;
		  					$i=(isset($_GET['page']))? (($_GET['page'] -1)* 10)+1:1;
						?>
						<?php foreach($notify as $item):?>
							<tr onclick="window.location='admin_notify/form/<?=$item['id'];?>'">
								<td class="tdlist"><?=$i?></td>
								<td class="tdlist"><img src="uploads/notify/<?=$item['image']?>" width="640"></td>
								<td class="tdlist"><?=$item['title']?></td>
								<td align="center" class="tdlist"><a href="admin_notify/delete/<?php echo $item['id']?>" style="text-decoration:none;" onclick="return confirm('<?php echo NOTICE_CONFIRM_DELETE?>')"><input type="button" class="btn_delete" /></a></td>
							</tr>
							<?$i++?>
						<?php endforeach;?>
					
				</table>
			</td>
		</tr>
	</table>
</div>    